﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace ClassCommon
{
    public static class ConfigSetting
    {
        #region cookie相关
        /// <summary>
        ///  用户登录cookie键
        /// </summary>
        public readonly static string Cookie_UserID = System.Configuration.ConfigurationManager.AppSettings["Cookie_UserID"];
        /// <summary>
        /// cookie验证码记录
        /// </summary>
        public readonly static string Cookie_ValidateCode = System.Configuration.ConfigurationManager.AppSettings["Cookie_ValidateCode"];
        /// <summary>
        /// 手机验证码记录
        /// </summary>
        public readonly static string Cookie_PhoneValidateCode = System.Configuration.ConfigurationManager.AppSettings["Cookie_PhoneValidateCode"];
        #endregion

        #region 不排课数据标记
        // 班级不排课标记
        public const string NoScheduleClassType = "class";
        // 课程不排课标记
        public const string NoScheduleCourseType = "course";
        // 老师不排课标记
        public const string NoScheduleTeacher = "teacher";
        #endregion

        #region 邮件配置相关
        /// <summary>
        /// 邮件来自
        /// </summary>
        public readonly static string Mail_From = System.Configuration.ConfigurationManager.AppSettings["Mail_From"];

        /// <summary>
        /// 邮件密码
        /// </summary>
        public readonly static string Mail_Password = System.Configuration.ConfigurationManager.AppSettings["Mail_Password"];

        /// <summary>
        /// 邮件host
        /// </summary>
        public readonly static string Mail_Host = System.Configuration.ConfigurationManager.AppSettings["Mail_Host"];

        public readonly static string Mail_Subject = "【华志创云排课-邮箱密码找回】";

        #endregion

        #region 在线客服相关
        // 在线客服QQ
        public static readonly string Services_QQ = System.Configuration.ConfigurationManager.AppSettings["ServicesQQ"].ToString();
        // 在线客服QQ密码
        public static readonly string Services_PWD = System.Configuration.ConfigurationManager.AppSettings["ServicesPwd"].ToString();
        #endregion

        #region 算法exe文件路径 & data_egao.txt 文件路径
        public static readonly string Arithmetic_EXE_Path = HttpContext.Current.Server.MapPath("/arithmetic/1.exe");

        public static readonly string Arithmetic_Egao_Txt_Path = HttpContext.Current.Server.MapPath("/arithmetic/data_egao.txt");

        #endregion

    }
}
